package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * fence对象 electronic_fence
 * 
 * @author ruoyi
 * @date 2023-09-25
 */
public class ElectronicFence extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 电子围栏编号 */
    private Long electronicId;

    /** 围栏名称 */
    @Excel(name = "围栏名称")
    private String electronicName;

    /** 围栏类型 */
    @Excel(name = "围栏类型")
    private String electronicType;

    /** 围栏启用状态 */
    @Excel(name = "围栏启用状态")
    private String electronicEnabled;

    /** 围栏违纪具体位置 */
    @Excel(name = "围栏违纪具体位置")
    private String violationSpecific;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date violationCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date violationFence;

    public void setElectronicId(Long electronicId) 
    {
        this.electronicId = electronicId;
    }

    public Long getElectronicId() 
    {
        return electronicId;
    }
    public void setElectronicName(String electronicName) 
    {
        this.electronicName = electronicName;
    }

    public String getElectronicName() 
    {
        return electronicName;
    }
    public void setElectronicType(String electronicType) 
    {
        this.electronicType = electronicType;
    }

    public String getElectronicType() 
    {
        return electronicType;
    }
    public void setElectronicEnabled(String electronicEnabled) 
    {
        this.electronicEnabled = electronicEnabled;
    }

    public String getElectronicEnabled() 
    {
        return electronicEnabled;
    }
    public void setViolationSpecific(String violationSpecific) 
    {
        this.violationSpecific = violationSpecific;
    }

    public String getViolationSpecific() 
    {
        return violationSpecific;
    }
    public void setViolationCreate(Date violationCreate) 
    {
        this.violationCreate = violationCreate;
    }

    public Date getViolationCreate() 
    {
        return violationCreate;
    }
    public void setViolationFence(Date violationFence) 
    {
        this.violationFence = violationFence;
    }

    public Date getViolationFence() 
    {
        return violationFence;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("electronicId", getElectronicId())
            .append("electronicName", getElectronicName())
            .append("electronicType", getElectronicType())
            .append("electronicEnabled", getElectronicEnabled())
            .append("violationSpecific", getViolationSpecific())
            .append("violationCreate", getViolationCreate())
            .append("violationFence", getViolationFence())
            .toString();
    }
}
